class AddPrerequisitesForMath < ActiveRecord::Migration
  def self.up
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (1, 2, 1)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (2, 3, 2)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (3, 6, 1)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (4, 6, 16)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (5, 7, 1)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (6, 7, 16)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (7, 8, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (8, 10, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (9, 11, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (10, 13, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (11, 13, 4)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (12, 14, 8)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (13, 14, 12)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (14, 15, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (15, 15, 4)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (16, 17, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (17, 17, 4)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (18, 17, 6)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (19, 19, 8)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (20, 20, 8)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (21, 21, 8)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (22, 23, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (23, 24, 17)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (24, 25, 17)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (25, 26, 17)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (26, 27, 17)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (27, 28, 11)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (28, 29, 28)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (29, 30, 11)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (30, 31, 19)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (31, 31, 20)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (32, 32, 31)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (33, 33, 19)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (34, 33, 20)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (35, 33, 21)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (36, 34, 19)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (37, 34, 20)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (38, 35, 34)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (39, 36, 19)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (40, 36, 20)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (41, 37, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (42, 37, 4)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (43, 38, 11)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (44, 39, 38)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (45, 40, 8)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (46, 41, 11)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (47, 42, 41)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (48, 43, 38)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (49, 44, 38)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (50, 45, 8)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (51, 45, 12)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (52, 46, 10)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (53, 47, 46)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (54, 48, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (55, 48, 4)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (56, 48, 7)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (57, 49, 10)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (58, 50, 10)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (59, 50, 14)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (60, 51, 50)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (61, 52, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (62, 52, 4)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (63, 53, 3)"
    execute "insert into `prerequisites` (\"id\", \"course_id\", \"prerequisite_id\") values (64, 53, 4)"
  end

  def self.down
    execute "delete from `prerequisites` where id < 65"
  end
end
